<!doctype html>
<html>
<head>
  <title data-i18n="iota_wallet"></title>
  <script type="text/javascript" src="bower_components/jquery/dist/jquery.min.js"></script>
  <script type="text/javascript" src="bower_components/i18next/i18next.min.js"></script>
  <script type="text/javascript" src="bower_components/i18next-xhr-backend/i18nextXHRBackend.min.js"></script>
  <script type="text/javascript" src="bower_components/jquery-i18next/jquery-i18next.min.js"></script>
  <script type="text/javascript" src="bower_components/clipboard/dist/clipboard.min.js"></script>
  <script type="text/javascript" src="bower_components/jquery-qrcode/dist/jquery.qrcode.min.js"></script>
  <script type="text/javascript" src="bower_components/remodal/dist/remodal.min.js"></script>
  <script type="text/javascript" src="bower_components/toastr/toastr.js"></script>
  <script type="text/javascript" src="bower_components/async/dist/async.min.js"></script>
  <script type="text/javascript" src="bower_components/iota.lib.js/dist/iota.js"></script>
  <script type="text/javascript" src="bower_components/openpgp/dist/openpgp.js"></script>
  <script type="text/javascript" src="js/iota.crypto.js"></script>
  <script type="text/javascript" src="js/other/loading-btn.js"></script>
  <script type="text/javascript" src="js/ui.init.js"></script>
  <script type="text/javascript" src="js/ui.addresses.js"></script>
  <script type="text/javascript" src="js/ui.animation.js"></script>
  <script type="text/javascript" src="js/ui.app.js"></script>
  <script type="text/javascript" src="js/ui.help.js"></script>
  <script type="text/javascript" src="js/ui.history.js"></script>
  <script type="text/javascript" src="js/ui.login.js"></script>
  <script type="text/javascript" src="js/ui.modals.js"></script>
  <script type="text/javascript" src="js/ui.spam.js"></script>
  <script type="text/javascript" src="js/ui.transfers.js"></script>
  <script type="text/javascript" src="js/ui.url.js"></script>
  <script type="text/javascript" src="js/ui.update.js"></script>
  <script type="text/javascript" src="js/ui.pasteTrytes.js"></script>
  <script type="text/javascript" src="js/ui.utils.js"></script>
  <script type="text/javascript" src="js/ui.recover.js"></script>
  <link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css" />
  <link rel="stylesheet" href="bower_components/remodal/dist/remodal.css" />
  <link rel="stylesheet" href="bower_components/toastr/toastr.css" />
  <link rel="stylesheet" href="css/remodal-theme.css" />
  <link rel="stylesheet" href="css/loading-btn.css" />
  <link rel="stylesheet" href="css/ui.css" />
  <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
</head>
<body>

<div id="login" class="white">
  <div class="logo">
    <img src="img/iota-logo.svg">
  </div>

  <div id="login-form">
    <div id="login-password-wrapper">
      <div id="login-checksum" class="help icon"><i class="fa fa-question-circle"></i></div>
      <input type="password" id="login-password" data-i18n="[placeholder]seed" />
    </div>
    <button type="button" id="login-btn" class="btn" data-initial="login" data-loading="logging_in" data-bar-timeout="50" data-auto-reset="1" data-i18n="login"></button>
    <button type="button" id="error-btn" class="btn btn-no-loading" data-i18n="no_connection"></button>
  </div>
</div>

<div id="app">
  <div class="header">
    <div class="menu"></div>
    <div class="logo"></div>
    <div class="logout"></div>
  </div>
  <div class="stacks">
    <div id="balance-stack" class="stack open">
      <div class="inner">
        <div class="row">
          <h1 data-i18n="balance"></h1>
          <div id="available-balance-always" class="show-closed"></div>
        </div>
        <div class="content padded">
          <div class="number">
            <div class="amount" id="available-balance"></div>
          </div>
        </div>
      </div>
    </div>
    <div id="transfer-stack" class="stack closed" data-higher="open" data-lower="closed" data-onopen="onOpenTransferStack">
      <div class="inner">
        <h1 data-i18n="send"></h1>
        <div class="content">
          <div class="padded">
            <div class="input"><input type="text" name="recipient" id="transfer-address" data-i18n="[placeholder]recipient_address" autocomplete="off" /></div>
            <div class="input" id="transfer-amount-container">
              <input type="number" name="amount" id="transfer-amount" data-i18n="[placeholder]amount" autocomplete="off" min="0" />
              <label id="transfer-units-value">i</label>
            </div>
            <div class="input" id="transfer-tag-container"><input type="text" name="tag" id="transfer-tag" data-i18n="[placeholder]optional_tag" autocomplete="off" /></div>
          </div>
          <input type="hidden" name="transfer-autofill" id="transfer-autofill" value="0" />
          <button id="transfer-btn" type="button" class="btn" data-initial="send_it_now" data-loading="sending" data-i18n="send_it_now"></button>
        </div>
      </div>
    </div>
    <div id="generate-address-stack" class="stack closed" data-higher="open" data-lower="closed" data-onopen="onOpenAddressStack">
      <div class="inner">
        <h1 data-i18n="receive"></h1>
        <div class="content">
          <div class="loading-ring"><div></div></div>
          <div class="padded">
            <p id="generate-address-result" class="address clipboard">OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMQQQQQQQQQQQQQQQQQQQQQ</p>
            <div id="generate-address-qr-code" class="address-qr clipboard"></div>
          </div>
          <button id="generate-address-btn" type="button" class="btn" data-initial="generate_new_address" data-loading="generating_address" data-i18n="generate_new_address"></button>
        </div>
      </div>
    </div>
    <div id="history-stack" class="stack closed" data-lower="closed">
      <div class="inner">
        <h1 data-i18n="history"><span></span></h1>
        <ul class="submenu">
          <li data-type="transfers" class="active" data-i18n="transfer"></li>
          <li data-type="addresses" data-i18n="address"></li>
        </ul>
        <div class="content">
          <div class="transfers list">
            <p data-i18n="no_transfers_found"></p>
            <ul></ul>
          </div>
          <div class="addresses list">
            <ul></ul>
            <p data-i18n="no_addresses_found"></p>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<div id="bundle-modal" class="modal" data-remodal-id="bundle">
  <button data-remodal-action="close" class="remodal-close"></button>
  <h1 data-i18n="bundle_details"></h1>
  <p class="hash overflow-text"></p>
  <div class="contents"></div>
  <button id="rebroadcast-btn" type="button" class="btn" data-initial="rebroadcast" data-loading="rebroadcasting" data-i18n="rebroadcast"></button>
  <button id="reattach-btn" type="button" class="btn" data-initial="reattach" data-loading="reattaching" data-i18n="reattach"></button>
  <button id="promote-btn" type="button" class="btn" data-initial="promote" data-loading="promoting" data-i18n="promote"></button>
  <div class="persistence small"></div>
</div>

<div id="node-info-modal" class="modal" data-remodal-id="node-info">
  <button data-remodal-action="close" class="remodal-close"></button>
  <h1 data-i18n="node_info"></h1>
  <div class="contents"></div>
</div>

<div id="peers-modal" class="modal" data-remodal-id="peers">
  <button data-remodal-action="close" class="remodal-close"></button>
  <h1 id='neighbors' data-i18n="neighbors"></h1>
  <div class="contents"></div>
</div>

<div id="key-reuse-modal" class="modal" data-remodal-id="key-reuse">
  <button data-remodal-action="close" class="remodal-close"></button>
  <h1 data-i18n="key_reuse_error"></h1>
  <div class="contents"><p data-i18n="key_reuse_attempt"></p></div>
  <button id="key-reuse-close-btn" type="button" class="btn" data-initial="close" data-loading="closing" data-i18n="close"></button>
</div>

<div id="sent-to-key-reuse-modal" class="modal" data-remodal-id="sent-to-key-reuse">
  <button data-remodal-action="close" class="remodal-close"></button>
  <h1 data-i18n="sent_to_key_reuse_error"></h1>
  <div class="contents"><p data-i18n="sent_to_key_reuse_attempt"></p></div>
  <button id="sent-to-key-reuse-close-btn" type="button" class="btn" data-initial="close" data-loading="closing" data-i18n="close"></button>
</div>

<div id="paste-trytes-modal" class="modal" data-remodal-id="paste-trytes">
  <button data-remodal-action="close" class="remodal-close"></button>
  <h1 data-i18n="paste_trytes"></h1>
  <div class="contents">
    <div id="paste-trytes-group">
      <textarea name='trytes' id='pasted-trytes' data-i18n="[placeholder]paste_trytes_here" style='width:98%;min-height:100px;max-height:300px;font-size:100%'></textarea>
      <button id="verify-pasted-trytes-btn" type="button" class="btn" data-initial="verify_trytes" data-loading="verifying" data-i18n="verify_trytes"></button>
    </div>
    <div id="process-trytes-group">
      <div id="process-trytes"></div>
      <input type="hidden" name="pasted_trytes_completed" id="process-pasted-trytes-completed" value="0" />
      <button id="process-pasted-trytes-btn" type="button" class="btn" data-initial="process_trytes" data-loading="processing" data-i18n="process_trytes"></button>
    </div>
  </div>
</div>

<div id="spam-modal" class="modal" data-remodal-id="spam">
  <button data-remodal-action="close" class="remodal-close"></button>
  <h1 data-i18n="network_spammer"></h1>
  <div class="contents"><p data-i18n="help_network_spamming"></p></div>
  <button id="spam-btn" type="button" class="btn" data-initial="spam_the_network" data-loading="spamming" data-i18n="spam_the_network"></button>
  <div id="spam-output" class="small"><span id="spam-cnt">0</span> <span data-i18n="x_transactions_generated"></span> <span id="spam-msg"></span></div>
  <div id="spam-not-synced" class="small" style="color:red;display:none;" data-i18n="not_synced"></div>
</div>

<div id="recovery-modal" class="modal gray" data-remodal-id="recovery">
  <button data-remodal-action="close" class="remodal-close"></button>
  <div class="contents"><p data-i18n=""></p></div>
  <div id="recovery-step-1">
    <p class="description"><span data-i18n="recovery_info"></span></p>
    <label for="old_seed" data-i18n="old_seed">Old seed:</label>
    <input type="password" name="old_seed" id="recovery-old-seed" placeholder="Old seed" />
    <p class="description"><span data-i18n="recovery_new_seed_prompt"></span></p>
    <label for="new_seed" data-i18n="new_seed"></label>
    <input type="password" name="new_seed" id="recovery-new-seed" placeholder="New seed" />
    <button id="recovery-next-btn" class="btn" type="button" data-initial="recovery_next" data-loading="recovery_loading" data-i18n="recovery_next"></button>
  </div>
  <div id="recovery-step-2">
    <p id="recovery-proof-confirmed-status" class="recovery-pending">
      <span id="recovery-proof-transaction-pending" data-i18n="recovery_proof_transaction_pending"></span>
      <span id="recovery-proof-transaction-confirmed" data-i18n="recovery_proof_transaction_confirmed"></span>
    </p>
    <p id="recovery-reveal-confirmed-status" class="recovery-pending">
      <span id="recovery-reveal-transaction-pending" data-i18n="recovery_reveal_transaction_pending"></span>
      <span id="recovery-reveal-transaction-confirmed" data-i18n="recovery_reveal_transaction_confirmed"></span>
    </p>
    <span data-i18n="recovery_transaction_hash"></span>
    <div id="recovery-transaction-hash-clipboard" class="hash"></div>
    <p id="recovery-reattach-prompt" class="description"><span data-i18n="recovery_reattach_prompt"></span></p>
    <button id="recovery-reattach-btn" class="btn" type="button" data-initial="reattach" data-loading="reattaching" data-i18n="reattach"></button>
    <button id="recovery-promote-btn" class="btn" type="button" data-initial="promote" data-loading="promoting" data-i18n="promote"></button>
    <div id="recovery-submit-seed">
      <p id="recovery-submit-seed-prompt" class="description"><span data-i18n="recovery_submit_seed_promt"></span></p>
      <button id="recovery-submit-seed-btn" class="btn" type="button" data-initial="recovery_submit_seed" data-loading="sending" data-i18n="recovery_submit_seed"></button>
      <button id="recovery-submit-seed-reattach-btn" class="btn" type="button" data-initial="reattach" data-loading="reattaching" data-i18n="reattach"></button>
      <button id="recovery-submit-seed-promote-btn" class="btn" type="button" data-initial="promote" data-loading="promoting" data-i18n="promote"></button>
    </div>
  </div>
  <div id="recovery-step-3">
    <p class="description"><span data-i18n="recovery_submitted_address"></span></p>
    <span data-i18n="recovery_receive_address"></span>
    <div id="recovery-new-address-clipboard" class="hash"></div>
    <button id="recovery-step-3-close-btn" class="btn btn-no-loading" type="button" data-initial="recovery_close" data-i18n="recovery_close"></button>
  </div>
</div>

<div id="help">
  <div class="start">
    <div class="close"></div>
    <ul class="sections">
      <li class="help" data-i18n="help"></li>
      <li class="contact" data-i18n="contact"></li>
      <li class="privacy" data-i18n="privacy_terms"></li>
      <li class="logout" data-i18n="logout"></li>
    </ul>
  </div>
  <div class="section" data-section="help">
    <div class="title">
      <div class="back"></div>
      <h2 data-i18n="help"></h2>
    </div>
    <div class="content">
      <h3 data-i18n="faqs"></h3>
      <dl class="faq">
        <dt>Creating a New Account</dt>
        <dd>Creating a new account is as easy as generating a new, unique seed (consisting of 81 characters, only uppercase latin letters and the number 9 are allowed). You do not need to make your seed 81-chars long, but that is suggested. If you already generated a seed before you can enter it and access your account directly.<br /><br />Your seed is your password that is used to access your account, and thus your IOTA tokens. Do not share it with anyone and keep it stored safely somewhere where nobody else but you can access it. If you have forgotten your seed, you will lose access to your IOTA tokens.</dd>
        <dt>When can I make another transfer?</dt>
        <dd>In order to prevent double-spending, you should only make a new transfer after all of your previous value transfers have been confirmed. IOTA deterministically chooses inputs for new transfers, so you have to get your previous transactions confirmed in order to successfully make a new transfer without doublespending the inputs.</dd>
        <dt>Tangle Not Solid</dt>
        <dd>If you get this error when trying to send IOTAs or generating addresses, it means you are not yet in sync. If you've just installed the app, you may want to wait some time for the network to be in sync. To check sync status, go to View &raquo; Status Bar. In the status bar, you'll see: xx / yyyy (zz). Compare this to the output of the channel #botbox in our <a href="https://slack.iota.org" target="_blank" rel="noopener noreferrer">chat</a>.<br /><br />If you can't catch up to the network after some time, you can find a download-able Tangle on the Forum.</dd>
        <dt>What is the difference between i, Ki, Mi, Gi, Ti and Pi?</dt>
        <dd>IOTA uses the 'International System of Units' or 'SI'. You are probably already familiar with this denomination from the world of computer storage (Kilobyte, Megabyte, Gigabyte etc.) IOTA follows the same system with Kilo-iotas (Ki) starting at 1'000 up to 1'000'000 where Mega-iotas (Mi) take over, then it's Giga (Gi), Tera (Ti) and finally Peta (Pi). This means that when you set the 'send field' to Ki you will be sending the amount you enter times thousand.</dd>
        <dt>How long should a transaction take?</dt>
        <dd>When sending an iota transaction your CPU carries out an amount of Proof-of-Work to secure the Tangle network, this means that the time it takes to carry out a transaction depends on the power of your processor. Expect between 1 - 25 minutes.</dd>
        <dt>How long should address generation take?</dt>
        <dd>The address generation itself is done instantly, but in order to save the address in the Tangle, you have to carry out some Proof-of-Work, depending on what kind of CPU you have this can take anywhere from 1 - 15 minutes.</dd>
        <dt>Can I reuse addresses?</dt>
        <dd>You can use an address for receiving as long as you have not used it for any outgoing transaction. What this means is that once you have sent a transaction with a specific address as input, you should never use it again. This is because IOTA uses Winternitz one-time signatures which degrade security exponentially after each reuse.</dd>
        <dt>How long and complex should my seed be?</dt>
        <dd>In order to ensure that only you got access to your iotas you ought to create a sufficiently complex seed. This means a randomized 81 character seed consisting of uppercase latin letters and the number 9.</dd>
      </dl>
    </div>
  </div>
  <div class="section" data-section="contact">
    <div class="title">
      <div class="back"></div>
      <h2 data-i18n="community"></h2>
    </div>
    <div class="content">
      <h3 data-i18n="join_us"></h3>
      <p><a href="https://slack.iota.org" target="_blank" rel="noopener noreferrer">slack.iota.org</a></p>
      <p><a href="https://forum.iota.org" target="_blank" rel="noopener noreferrer">forum.iota.org</a></p>
    </div>
  </div>
  <div class="section" data-section="privacy">
    <div class="title">
      <div class="back"></div>
      <h2 data-i18n="terms_agreements"></h2>
    </div>
    <div class="content">
      <p data-i18n="iota_tos"></p>
      <p data-i18n="iota_consult"></p>
    </div>
  </div>
</div>

<div id="overlay"></div>

<div id="preload">
  <img src="img/user.png" />
  <img src="img/help.png" />
  <img src="img/privacy.png" />
  <img src="img/logout.png" />
  <img src="img/close.png" />
</div>

</body>
</html>
